<?php $refresh  = 'refresh-' . rand(1000, 99999); ?>
<?php $userList = 'user-list' . rand(1000, 99999); ?>
<div class="right-box clearfix">
	<fieldset class="inter-line mb20">
		<a class="right" id="<?php echo ($refresh); ?>">
			<i class="ico-refresh"></i>
		</a>
		<legend class="inter-txt"><?php echo ($title); ?></legend>
	</fieldset>
	<ul class="user-list-rec" id="<?php echo ($userList); ?>" model-node="related_ul_daren"></ul>
</div>
<script>
/* # 组建方式，防止不存在jquery */
;(function (window, $, undefind) {
	"use strict";
	/* 重新加载数据防范 */
	var reload = function() {
		$.post('<?php echo U('widget/WeibaDaren/reload');?>', {
			limit: '<?php echo ($max); ?>',
			uid: '<?php echo ($uid); ?>',
			wid: '<?php echo ($weibaid); ?>'
		}, function(data) {
			if (data) {
				// $('#<?php echo ($userList); ?>').html(data);
				var _model = M.getModels('related_ul_daren');
				$(_model[0]).html(data);
        M($(_model)[0]);
			};
		}, 'html');
	};

	/* # 刷新按钮点击事件 */
	$('#<?php echo ($refresh); ?>').on('click', function(event) {
		event.preventDefault();
		reload();
	});

	/* # 初始化执行 */
	reload();

})(window, jQuery || $);
</script>